<!--
 * @Autor: zengy
 * @Date: 2021-03-31 16:01:59
 * @LastEditors: zengy
 * @LastEditTime: 2021-10-15 10:19:13
 * @Description: 
 * @FilePath: \m_t\src\views\demo\index.vue
-->
<template>
  <section class="container">
    测试
  </section>
</template>

<script setup>
window.__RATIO = 185.7;
import { getCurrentInstance, computed, reactive } from 'vue';
import { useStore } from 'vuex';
const {
  state: { wsEventBus, ws, stationId, lineId }
} = useStore();

let d = reactive({})

/**
 * @description: 初始化
 */
function init() {
  wsEventBus.$on('D01', ({ data }) => {

  });
  sendCommand();
}

/**
 * @description: socket订阅
 */
function sendCommand() {
  ws.send({ command: 'CLEAR', params: ['D01'] });
  ws.send({
    command: 'D01',
    params: {}
  });
}

init();
</script>

<style lang="less" scoped>
.container{
  font-size:60px;
  color:red;
}
</style>